package com.example.mypro;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;


public class LibraryActivity extends Activity implements OnClickListener{
	private Button tspublic;
	private Button tsperson;
	private Intent intent;
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_library);
		tspublic = (Button)findViewById(R.id.library_bn_tspublic);
		tsperson = (Button)findViewById(R.id.library_bn_tsperson);
		tsperson.setOnClickListener(this);
		tspublic.setOnClickListener(this);
		}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.library_bn_tsperson:
			intent = new Intent(LibraryActivity.this, TspersonActivity.class);
			startActivity(intent);
			break;
		case R.id.library_bn_tspublic:
			intent = new Intent(LibraryActivity.this, TspublicActivity.class);
			startActivity(intent);
			break;
		}

	}
}
